# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-bottle-rest
_pkgname=bottle-rest
pkgver=0.5.2
pkgrel=2
pkgdesc="A decorator for REST in Bottle"
options="!check" # Has no github tarballs with tests
url="https://pypi.python.org/pypi/bottle-rest/"
arch="noarch"
license="MIT"
depends="python3 py3-bottle"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

replaces="py-bottle-rest" # Backwards compat
provides="py-bottle-rest=$pkgver-r$pkgrel" # Backwards compat

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2071a9b6e74e9cbed6bc07d55e9f64c3752e03a5fb24640a94bf0624be27675a01e525f3830119778d29b76b57fda1a7cb34895adc1332b038d0840ce27d11cb  bottle-rest-0.5.2.tar.gz"
